import { createApp } from "vue";
import App from "./App.vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import "element-plus/theme-chalk/dark/css-vars.css";
import "normalize.css"; //初始化样式  npm i normalize.css
import "@/assets/style/index.scss";
//@ts-expect-error忽略当前文件ts类型的检测否则有红色提示(打包会失败)
import zhCn from "element-plus/dist/locale/zh-cn.mjs";
import globalComponent from "@/components";
import store from "./store/index";
const app = createApp(App);
import router from "./router";
import "@/permisstion";
import directives from "@/uitls/directives";
app
  .use(ElementPlus, {
    locale: zhCn,
  })
  .use(globalComponent)
  .use(directives)
  .use(store)
  .use(router);
// svg插件
import "virtual:svg-icons-register";
app.mount("#app");
